* s~\t+$~~
[lhc/web/wiklou.git] / maintenance / cleanupDupes.inc
index 8b1ea5e..237a8a9 100644 (file)
@@ -1,17 +1,17 @@
 <?php
 # Copyright (C) 2004 Brion Vibber <brion@pobox.com>
 # http://www.mediawiki.org/
-# 
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or 
+# the Free Software Foundation; either version 2 of the License, or
 # (at your option) any later version.
-# 
+#
 # This program is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 # GNU General Public License for more details.
-# 
+#
 # You should have received a copy of the GNU General Public License along
 # with this program; if not, write to the Free Software Foundation, Inc.,
 # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
@@ -49,12 +49,12 @@ END
                while( $row = $dbw->fetchObject( $res ) ) {
                        $ns = intval( $row->cur_namespace );
                        $title = $dbw->addQuotes( $row->cur_title );
-                       
+
                        # Get the first responding ID; that'll be the one we keep.
                        $id = $dbw->selectField( 'cur', 'cur_id', array(
                                'cur_namespace' => $row->cur_namespace,
                                'cur_title'     => $row->cur_title ) );
-                       
+
                        echo "$ns:$row->cur_title (canonical ID $id)\n";
                        if( $id != $row->id ) {
                                echo "  ** minimum ID $row->id; ";
@@ -74,7 +74,7 @@ END
                                        }
                                }
                        }
-                       
+
                        if( $fixthem ) {
                                $dbw->query( <<<END
 INSERT